<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>服务网点</title
><link href="{MODULE_URL}images/css/owl.carousel.css" rel="stylesheet">
<link href="{MODULE_URL}images/css/public.css" rel="stylesheet" type="text/css" />
<link href="{MODULE_URL}images/css/index.css" rel="stylesheet" type="text/css" />
<link href="{MODULE_URL}images/weui.css" rel="stylesheet" type="text/css" />
<link href="{MODULE_URL}images/weui2.css" rel="stylesheet" type="text/css" />
<script src="{MODULE_URL}images/js/jquery-1.8.3.min.js"></script>
<script src="{MODULE_URL}images/js/owl.carousel.min.js"></script>
<script src="{MODULE_URL}images/layer/layer.js"></script>
<script src="{MODULE_URL}images/zepto.min.js"></script>
</head>

<body>

<div class="mobile">

<form data-role="form" action="./index.php" method="get" class="index-search ">
 <input type="hidden" name="i" value="{$_W['uniacid']}">
    <input type="hidden" name="c" value="{$_GPC['c']}">   
    <input type="hidden" name="do" value="list">
    <input type="hidden" name="m" value="{$_GPC['m']}">
<div class="input-wrapper">
<input type="text" placeholder="搜索网点、分类、地点" autocomplete="off" data-role="input" maxlength="20" name="keyword" class="input">
<i data-role="clear" class="clear"></i>
<input data-role="submit" type="submit" class="submit">
</div>
</form>
  <div class="top w">
    <div class="m_banner " id="owl">
{loop $advs $ad}
            <a href="{$ad['followurl']}" class="item"><img src="{php echo tomedia($ad['thumb'])}" width="100%"></a>
{/loop} 
           
      </div>
        <div class="m_nav">
        {loop $categorieshome $cid $category}

          {if $cid <= 13}
              {if $category['categoryurl'] == ''}
              <a href="{php echo $this->createMobileurl('list', array('cid'=>$category['id']));}"><img src="{php echo tomedia($category['thumb'])}"><span>{$category['name']}</span></a>
              {else}
              <a href="{php echo $category['categoryurl']; }"><img src="{php echo tomedia($category['thumb'])}"><span>{$category['name']}</span></a>
              {/if}
          {/if}

        {/loop}   
         <a href="{php echo $this->createMobileurl('category');}"><img src="{MODULE_URL}images/nav1.gif"><span>全部分类</span></a>        
        </div>
  </div>
  <!-- 推荐商家 -->
 <!--  <div class="m_mall w">
    <div class="mall_title"><span>推荐商家</span><em><a href="#">更多</a></em></div>
    <div class="mall_list">
      {loop $hot $cid $hot}
       {php $pic = iunserializer($hot['logo'])}
      <a href="{php echo $this->createMobileUrl('content', array('id'=>$hot['id']));}" class="mall"><div class="mall_logo"><img src="{php echo tomedia($pic['0'])}" /></div><span>{php echo cutstr($hot['title'],5)}</span></a>
    {/loop} 
       
    </div>
  </div> -->
  <p class="divider"> <a href="{php echo $this->createMobileUrl('Mybusiness', array('op'=>'edit'));}">{$settings['home_hs']}</a></p>

<!-- 暂未开发 导航-->
<!-- <div class="weui_tab weui_tab_red"  style="height:55px;">
            <div class="weui_navbar">
               <a class="weui_navbar_item  {if $op=='hot' }tab-red{/if}" href="{php echo $this->createMobileUrl('index', array('op'=>'hot'));}">
                  热门
                </a>
                <a class="weui_navbar_item {if $op=='new' }tab-red{/if}" href="{php echo $this->createMobileUrl('index', array('op'=>'new'));}">
                  新入
                </a>
               <a class="weui_navbar_item" href="" >
                  资讯
                </a>
              
            </div>
        </div> -->
<!-- 暂未开发 -->
  
  <div class="m_baoliao w">
    <div class="baoliao_title"><span>网点列表</span><em></em></div>
    <div class="baoliao_list" style="width:100%">
    {loop $business $business}  
     {php $pic = iunserializer($business['logo'])}
              <section class="good">
                  <a  href="{php echo $this->createMobileUrl('content', array('id'=>$business['id']));}" class="good-content">
                  <div class="img-wrapper" style="width: 80px;">
                  <div class="img-placeholder">
                  <img width="80" height="60" data-role="deal-img" src="{php echo tomedia($pic['0'])}" style="visibility: visible;">
                  </div>
                  <span class="tag reservation"></span>                  
                  </div>
                  <div class="info-wrapper">
                  <div class="title-line ">
                  <div class="title">
                  <h3 class="item-name">{$business['title']}</h3></div>
                  <span class="distance"></span>
                  <span class="store">{php echo $this->friendlyDate($business['time'])} </span>
                  </div>
                  <p class="desc">{$business['desc']}...</p>
                  <p class="price-line">
                  <ins style="font-size:14px">{$categories[$business['categoryid']]['name']}</ins> 
                  <span class="bought">已看{$business['click']}次</span>
                  </p>
                  </div>
                  </a>
        </section>
    {/loop}
    </div>
    <div class="bl_more"><a href="{php echo $this->createMobileUrl('category');}">查看全部</a></div>
  </div>
 {template 'footer'}

</div>
<div class="gotop backtop" style="display:none;"></div>

</body>
</html>
<script type="text/javascript">
//返回顶部
$(document).ready(function(){
  $(window).scroll(function () {
    var scrollHeight = $(document).height();
    var scrollTop = $(window).scrollTop();
    var $windowHeight = $(window).innerHeight();
    scrollTop > 75 ? $(".gotop").fadeIn(200).css("display","block") : $(".gotop").fadeOut(200).css({"background-image":"url({MODULE_URL}images/images/iconfont-fanhuidingbu.png)"});
  });
  $('.backtop').click(function (e) {
    $(".gotop").css({"background-image":"url(images/iconfont-fanhuidingbu_up.png)"});
    e.preventDefault();
    $('html,body').animate({ scrollTop:0});
  });
});
</script>
